package com.aaa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年11月17日12:14
 */
@Data
@TableName("user")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "user")

public class User {

    @TableId(value = "id",type = IdType.AUTO)

    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "真实名字")
    @TableField("realname")
    private String realname;

    @ApiModelProperty(value = "头像")
    @TableField("headUrl")
    private String headUrl;
}
